#ifndef DATACENTER_MODELMANAGER_H
#define DATACENTER_MODELMANAGER_H

/**
 * @copyright Copyright (c) 2025 
 * CSG Digital Grid Technology (Guangdong) Co., Ltd.
 * @author zhouyan
 * @brief 数据中心模块解析
*/
#include "sys_inc.h"
#include "def.h"

namespace DC {

class ModelManger
{
public:
    typedef std::map<std::string, ModelItems*> mapNode;

    static ModelManger *mgr(void);

    ModelManger();
    ~ModelManger();

    void getModelNames(std::list<std::string> &names) const ;

    const ModelItems *node(const char *model);

    void clearNode(void);

    static const ModelItem * findItem(const ModelItems *items, const char *name);

private:
    bool loadProfile(const char *model_name, ModelItems *items);

protected:
    mapNode map_node_;
};

}

#endif
